package org.tea.inventory.model.dto.post;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author hanzy
 * @description
 * @date 2023年10月31日 11:21
 */
@Data
@ApiModel(value = "帖子问题")
public class PostQuestionDTO {
    @ApiModelProperty(value = "描述",required = true)
    @NotBlank(message = "选项描述不能为空")
    private String description;
    @ApiModelProperty(value = "选项 当类型为单选、多选必填")
    private List<PostOptionDTO> options;
    @ApiModelProperty(value = "选项类型  SCQ-单选  MCQ-多选 SAQ-问答",required = true)
    @NotBlank(message = "问题类型不能为空")
    private String type;
}
